//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_removeactions.sqf"
#include "xr_macros.sqf"

private ["_unit", "_hasaction"];
_unit = _this;
_hasaction = __GV(_unit,GVARXR(ReviveAction));
if (!isNil "_hasaction" && {_hasaction != -9999}) then {
	_unit removeAction _hasaction;
};
_unit setVariable [QGVARXR(ReviveAction), -9999];
_hasaction = __GV(_unit,GVARXR(DragAction));
if (!isNil "_hasaction" && {_hasaction != -9999}) then {
	_unit removeAction _hasaction;
};
_unit setVariable [QGVARXR(DragAction), -9999];